package design.onekey.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import design.onekey.model.SysFunction;
import design.onekey.model.dto.SysMenuDto;
import design.onekey.model.dto.MenuTreeDto;

import java.util.List;

/**
* @Description: SysFunctionMapper类
* @author
* @date 2020-06-05 04:03:04
* @version V1.0
*/
public interface SysFunctionMapper extends BaseMapper<SysFunction>{

    /**
     * @Title: getFunctionsByRole
     * @Description: 根据角色获取功能
     * @param roleId
     * @return
     * @author blcloak
     * @date 2020-06-05 05:53:04
     */
    List<SysFunction> getFunctionsByRole(Long roleId);

    /**
     * @Title: getMenuFunctions
     * @Description: 获取菜单对应的功能
     * @param sysMenuDto
     * @return
     * @author blcloak
     * @date 2020-06-11 09:28:14
     */
    List<MenuTreeDto> getMenuFunctions(SysMenuDto sysMenuDto);
}
